// 知识接口
import config from "./config";

var domain = config.getDomain;

var pageCount = config.getPageCount;

var DUIXIN_API =  domain + '/index.php?v=1&appid='+config.getAPPID+'&appsecret='+config.getAPPSECRET+'&';

export default  {
	//发布创业金id
	getFabuid(){
		var url = DUIXIN_API + '&s=chuangyejin&c=fabu&m=fabuid';
		return url;
	},
	//导航
	getChuangyejin_daohang(code,uid) {
		var url = DUIXIN_API + 's=chuangyejin&c=daohang&m=index';
		return url;
	},
	//判断创业金是否存在
	getChuangyejin_cunzai_api(uid,code,id,cid) {
		var url = DUIXIN_API + '&s=chuangyejin&c=home&m=cunzai&api_auth_uid='+uid+'&api_auth_code='+code+'&id='+id+'&cid='+cid;
		return url;
	},
	// 发布创业金
	postShenqing_chuangyejin(uid,code,id) {
		var url = DUIXIN_API + '&s=member&app=chuangyejin&c=home&m=add&api_auth_uid='+uid+'&api_auth_code='+code+'&catid='+id;
		return url;
	},
	//发布创业金
	postChuangyejin_data_add_api(uid,code) {
		var url = DUIXIN_API + '&s=member&app=chuangyejin&c=home&m=add&api_auth_uid='+uid+'&api_auth_code='+code+'&catid=1';
		return url;
	},
	//修改创业金
	postChuangyejin_xiugai_api(uid,code,id) {
		var url = DUIXIN_API + '&s=member&app=chuangyejin&c=home&m=edit&api_auth_uid='+uid+'&api_auth_code='+code+'&catid=1&id='+id;
		return url;
	},
	//创业金申请
	postChuangyejin_shenqing_api(uid,code) {
		var url = DUIXIN_API + '&s=member&app=chuangyejin&c=Shenqingdan&m=add&api_auth_uid='+uid+'&api_auth_code='+code+'&catid=1';
		return url;
	},
	//上传图片多张
	postTupians(uid,code) {
		return DUIXIN_API+'s=api&c=file&m=upload&api_auth_uid='+uid+'&api_auth_code='+code+'&siteid=1';
	},
	
	// 详情
	getChuangyejin_detail(id){
		var url = DUIXIN_API + '&s=chuangyejin&c=chuangyejin&m=detail&id='+id;
		return url;
	},
	// 申请的知识数量 shenhe_zhishi_shu
	getChuangyejin_shu(uid,code){
		var url = DUIXIN_API + '&s=member&app=chuangyejin&c=shenhe&m=shenhe_zhishi_shu&api_auth_uid='+uid+'&api_auth_code='+code;
		return url;
	},
	// 页面信息
	getChuangyejin(uid,code){
		var url = DUIXIN_API + '&s=chuangyejin&c=chuangyejin&m=index';
		if(uid || code){
			url += '&api_auth_uid='+uid+'&api_auth_code='+code;
		}
		return url;

	},
	//删除帖子
	getDel_tie(uid,code){
		var url = DUIXIN_API + '&s=member&app=chuangyejin&c=edit&m=del&api_auth_uid='+uid+'&api_auth_code='+code;
		return url;
	},
	//修改帖子
	getEdit_tie(uid,code,id){
		var url = DUIXIN_API + '&s=member&app=chuangyejin&c=edit&m=edit&api_auth_uid='+uid+'&api_auth_code='+code+'&id='+id;
		return url;
	},
	//购买扣除费用
	postGoumai(uid,code,id){
		var url = DUIXIN_API + '&s=member&app=chuangyejin&m=index&c=goumai&api_auth_uid='+uid+'&api_auth_code='+code+'&id='+id;
		return url;
	},

	

	


	
	
};